package site.lanmushan.quiz.api.entity;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import site.lanmushan.common.query.entity.BizEntity;
import com.alibaba.fastjson.JSONObject;
import site.lanmushan.quiz.api.jsonobj.LabelEntity;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.*;
import java.math.BigDecimal;

/**
 * @author $author
 * 测验题库
 */
@Data
@ApiModel
@Table(name = "quiz_tb_bank")
public class QuizTbBank extends BizEntity {

    @ApiModelProperty(value = "是否删除1是")
    private Long deleted;

    @ApiModelProperty(value = "题库名称")
    private String bankName;

    @ApiModelProperty(value = "题库编码")
    private String bankCode;

    @ApiModelProperty(value = "题库描述")
    private String bankDesc;

    @ApiModelProperty(value = "题库标签")
    @ColumnType(typeHandler = site.lanmushan.common.typehandler.JsonTypeHandler.class)
    private List<LabelEntity> bankLabel;

    @ApiModelProperty(value = "启用")
    private Integer enabled;

    @ApiModelProperty(value = "题库配置信息")
    private JSONObject bankConfig;

    @ApiModelProperty(value = "题库图片")
    @ColumnType(typeHandler = site.lanmushan.common.typehandler.JsonTypeHandler.class)
    private JSONArray bankImages;

    @ApiModelProperty(value = "题库注意事项")
    @ColumnType(typeHandler = site.lanmushan.common.typehandler.JsonTypeHandler.class)
    private JSONArray bankAttention;

}
